package com.zhang.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品评价的回复
 * </p>
 *
 * @author 创世神
 * @since 2024-04-20
 */
@Getter
@Setter
@TableName("appraise_reply")
public class AppraiseReply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 在哪条商品评价下回复
     */
    @TableField("appraise_id")
    private Long appraiseId;

    /**
     * 在哪条回复下评论
     */
    @TableField("parent_id")
    private Long parentId;

    /**
     * 回复内容
     */
    @TableField("comment")
    private String comment;

    @TableField("user_id")
    private Long userId;

    /**
     * 评论者的昵称
     */
    @TableField("user_name")
    private String userName;

    @TableField("avatar")
    private Long avatar;
}
